package com.ys.util
{
	import flash.display.Sprite;
	
	public class Universal
	{
		
		public static function removeAllChildren(spr:Sprite):void 
		{
			for (var i:int = 0; i < spr.numChildren; i++) {
				spr.removeChildAt(0);
			}
			if (spr.numChildren != 0) removeAllChildren(spr);
		}

	}
}